'use strict';

const Service = require('egg').Service;

class HomeService extends Service {
  async login(username,password) {
        return await this.app.mysql.query('select * from userlist where username=? and password=?',[username,password])
  }

  async del(id){
      return await this.app.mysql.query('delete from userlist where id=?',[id])
  }
}

module.exports = HomeService;
